<link href="<?php echo base_url('resources')?>/css/admin/styles.css" rel="stylesheet" type="text/css" />
<?php
//include('includes/leftStaffPanel.php');
?>
<div id="PeopleTableContainer"></div>
<div class="addRecord"></div>
	<script type="text/javascript">

		$(document).ready(function () {

		    //Prepare jTable
			$('#PeopleTableContainer').jtable({
				title: 'Danh sách chức danh',
				paging: true,
                pageSize: 15,
                pageSizeChangeArea: false,
                sorting: true,
                defaultSorting: 'MaBoPhan ASC',
                actions: {
					listAction: '<?php echo base_url('admin/bophan/get_danh_sach_bo_phan'); ?>',
                    deleteAction: '<?php echo base_url('admin/bophan/xoa_bo_phan'); ?>',
                    createAction: '<?php echo base_url('admin/bophan/them_bo_phan'); ?>',
                    updateAction: '<?php echo base_url('admin/bophan/update_bo_phan'); ?>',
                    
				},
				fields: {
					MaBoPhan:{
                        key: true,
                        create: false,
						edit: false,
						list: true,
						title:'Mã bộ phận',
                        width:'50%',
                        
					},
					TenBoPhan:{
						title: 'Bộ Phận',
                        width: '50%',
                        
					}
				}
                
			});

			//Load person list from server
			$('#PeopleTableContainer').jtable('load');

		});
        
        

	</script>